package com.minxi.jsp.javabean;

import java.util.Date;

public class Student {
    /**
     * 学生属性
     */
    private Integer id; // 编号
    private String studentName; // 姓名
    private int studentSex; // 性别
    private int studentAge; // 年龄
    private Date studentTime; // 生日
    private String studentAddress; // 学生家庭住址
    private int classId; // 班级ID

    /**
     * 实例方法
     */
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getStudentSex() {
        return studentSex;
    }

    public void setStudentSex(int studentSex) {
        this.studentSex = studentSex;
    }

    public int getStudentAge() {
        return studentAge;
    }

    public void setStudentAge(int studentAge) {
        this.studentAge = studentAge;
    }

    public Date getStudentTime() {
        return studentTime;
    }

    public void setStudentTime(Date studentTime) {
        this.studentTime = studentTime;
    }

    public String getStudentAddress() {
        return studentAddress;
    }

    public void setStudentAddress(String studentAddress) {
        this.studentAddress = studentAddress;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    /**
     * 重写方法
     */
    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", studentName='" + studentName + '\'' +
                ", studentSex=" + studentSex +
                ", studentAge=" + studentAge +
                ", studentTime=" + studentTime +
                ", studentAddress='" + studentAddress + '\'' +
                ", classId=" + classId +
                '}';
    }
}
